package com.medisched.medisched.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * 排班对象 schedule
 * 
 * @author ruoyi
 * @date 2025-05-15
 */
public class Schedule 
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户ID */
    private Long userId;

    /** 排班日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date shiftDate;

    /** 班次类型：0早班，1晚班，2夜班 */
    private Long shiftType;

    private Date createTime;

    public Schedule() {
    }

    public Schedule(long serialVersionUID, Long id, Long userId, Date shiftDate, Long shiftType, Date createTime) {
        this.id = id;
        this.userId = userId;
        this.shiftDate = shiftDate;
        this.shiftType = shiftType;
        this.createTime = createTime;
    }


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setShiftDate(Date shiftDate) 
    {
        this.shiftDate = shiftDate;
    }

    public Date getShiftDate() 
    {
        return shiftDate;
    }

    public void setShiftType(Long shiftType) 
    {
        this.shiftType = shiftType;
    }

    public Long getShiftType() 
    {
        return shiftType;
    }

    public String toString() {
        return "Schedule{serialVersionUID = " + serialVersionUID + ", id = " + id + ", userId = " + userId + ", shiftDate = " + shiftDate + ", shiftType = " + shiftType + "}";
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
